package com.dmap.knowledge.vo;

import com.dmap.knowledge.po.Banner;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 首页-banner轮播图
 */

public class BannerVo implements Serializable {
    
    private String appName;     //app名称
    private String title;       //标题
    private String imageUrl;    //image地址
    private long startTime;     //开始时间
    private long endTime;       //结束时间
    private int status;         //状态
    private int sort;           //排序
    private long browseNumber;  //浏览数量
    private String schedule;    //活动状态
    private long bannerId;    //bannerId
    private List<BannerTagVo> tags = new ArrayList<>();
    
    public BannerVo() {
    }
    
    public BannerVo(Banner banner) {
        
        if (banner.getId() != null) {
            this.bannerId = banner.getId();
            
        }
        if (banner.getAppName() != null) {
            this.appName = banner.getAppName();
            
        }
        if (banner.getTitle() != null) {
            this.title = banner.getTitle();
            
        }
        
        if (banner.getImageUrl() != null) {
            this.imageUrl = banner.getImageUrl();
            
        }
        if (banner.getStartTime() != null) {
            this.startTime = banner.getStartTime();
            
        }
        
        if (banner.getEndTime() != null) {
            this.endTime = banner.getEndTime();
            
        }
        
        if (banner.getStatus() != null) {
            this.status = banner.getStatus();
            
        }
        
        if (banner.getSort() != null) {
            this.sort = banner.getSort();
            
        }
        if (banner.getBrowseNumber() != null) {
            this.browseNumber = banner.getBrowseNumber();
        }
        
        
    }
    
    public List<BannerTagVo> getTags() {
        return tags;
    }
    
    public void setTags(List<BannerTagVo> tags) {
        this.tags = tags;
    }
    
    public long getBannerId() {
        return bannerId;
    }
    
    public void setBannerId(long bannerId) {
        this.bannerId = bannerId;
    }
    
    public int getStatus() {
        return status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    public String getSchedule() {
        return schedule;
    }
    
    public void setSchedule(String schedule) {
        this.schedule = schedule;
    }
    
    public String getAppName() {
        return appName;
    }
    
    public void setAppName(String appName) {
        this.appName = appName;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getImageUrl() {
        return imageUrl;
    }
    
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
    
    public long getStartTime() {
        return startTime;
    }
    
    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }
    
    public long getEndTime() {
        return endTime;
    }
    
    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }
    
    public int getSort() {
        return sort;
    }
    
    public void setSort(int sort) {
        this.sort = sort;
    }
    
    public long getBrowseNumber() {
        return browseNumber;
    }
    
    public void setBrowseNumber(long browseNumber) {
        this.browseNumber = browseNumber;
    }
}
